Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mapbox/pyskel
Skeleton of a Python package
https://github.com/mapbox/pyskel
imagery satellite
Last synced: 3 months ago
JSON representation
Skeleton of a Python package
- Host: GitHub
- URL: https://github.com/mapbox/pyskel
- Owner: mapbox
- License: mit
- Created: 2014-10-31T17:16:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T09:27:07.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T13:08:06.401Z (5 months ago)
- Topics: imagery, satellite
- Language: Python
- Size: 14.6 KB
- Stars: 242
- Watchers: 124
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
pyskel
======.. image:: https://travis-ci.org/mapbox/pyskel.svg
:target: https://travis-ci.org/mapbox/pyskel.. image:: https://coveralls.io/repos/mapbox/pyskel/badge.png
:target: https://coveralls.io/r/mapbox/pyskelA skeleton of a Python package with CLI and test suite included.
.. image:: https://farm4.staticflickr.com/3951/15672691531_3037819613_o_d.pngCustomization quick start
-------------------------To use pyskel as the start of a new project, do the following, preferably in
a virtual environment. Clone the repo... code-block:: console
git clone https://github.com/mapbox/pyskel myproject
cd myprojectReplace all occurrences of 'pyskel' with the name of your own project.
(Note: the commands below require bash, find, and sed and are yet tested only on OS X.).. code-block:: console
if [ -d pyskel ]; then find . -not -path './.git*' -type f -exec sed -i '' -e 's/pyskel/myproject/g' {} + ; fi
mv pyskel myprojectThen install in locally editable (``-e``) mode and run the tests.
.. code-block:: console
pip install -e .[test]
py.testFinally, give the command line program a try.
.. code-block:: console
myproject --help
myproject 4To help prevent uncustomized forks of pyskel from being uploaded to PyPI,
I've configured the setup's upload command to dry run. Make sure to remove
this configuration from
`setup.cfg `__
when you customize pyskel.Please also note that the Travis-CI and Coveralls badge URLs and links in the README
contain the string 'mapbox.' You'll need to change this to your own user or organization
name and turn on the webhooks for your new project.A post on the Mapbox blog has more information about this project:
https://www.mapbox.com/blog/pyskel/.See also
--------Here are a few other tools for initializing Python projects.
- Paste Script's `paster create `__ is
one that I've used for a long time.
- `cookiecutter-pypackage `__ is
a Cookiecutter template for a Python package. Cookiecutter supports many languages,
includes Travis configuration and much more.