typemytype / booleanOperations

Boolean operations on paths
MIT License
38 stars 18 forks source link

Set up test runner, enable PyPI deployment, update README #35

Closed anthrotype closed 8 years ago

anthrotype commented 8 years ago

I configured the CI to run the test modules found in tests subfolder.

I prefer to keep the test suite external rather than embedded in the package itself (e.g. like fonttools), especially since with booleanOperations we need to add test UFOs and we don't want to install them with the library.

I use pytest to discover tests, as the latter runs both unittest tests (if you like those) and its own kind of tests (I like the latter ones).

I use tox to check the package installation, and to run the tests in an isolated virtual environment.

Now that booleanOperations has become a pure python package, we no longer need Cython nor the C++ compiler configuration scripts, so I removed those.

Finally, I have set up Travis to automatically deploy the wheel and sdist distributions to the official Python Package Index whenever a new tag is pushed, using my own PyPI credentials. Of course, I'll make @typemytype an admin on the booleanOperations PyPI account.

anthrotype commented 8 years ago

To run the test suite locally you can use:

python setup.py test

Or pip install pytest and run the pytest script directly.

anthrotype commented 8 years ago

It's live! https://pypi.org/project/booleanOperations/

Apologies for the several failed attempts. I had problems encrypting my PyPI password, then I noticed that Travis was attempting to also upload the pyclipper wheel (which is maintained by someone else so it was giving me authentication error).. I fixed all that and now the PyPI deployment is finally working.

You know that you can create tags directly from Github website in the Releases section? After that, Travis will trigger a new build and upload the packages to both PyPI and Github.

Easy peasy ;)

@typemytype If you tell me your PyPI username, I can add you as "owner" to the account. If you don't have one, you can sign up for free at pypi.org.

Thanks!

typemytype commented 8 years ago

Ive just made an account on PyPi, username: TypeMyType

thanks!