Skip to main content

Strongly opinionated python project management.

Project description

edgy.project

Strongly opinionated python project management.

This package helps you create python source trees using best practices (or at least the practices we consider as best for us) in a breeze.

Don’t worry about setting up git, a makefile, usual project targets, unit tests framework, pip, wheels, virtualenv, code coverage, namespace packages, setup.py files … Project’s got you covered on all this, using one simple and fast command.

Install

Before installing the package, you must make sure that pip and virtualenv are installed and available to be used in your current environment.

pip install edgy.project

Now, you may want to bootstrap a python package source tree.

mkdir my.awesome.pkg
cd my.awesome.pkg
edgy-project init

You’re done with the bootstrap. You can now run:

make install
make test
git commit -m 'Damn that was fast ...'

Happy?

Update

If you change the Projectfile content, or update the library, you will need to run the generator again.

edgy-project update

To better control what changes are made, I suggest that you run it on a clean git repository, then look at the dofferences using:

git diff --cached

You can then commit the generated changes.

Gotchas

As the headline says, we have made strong opinionated choices about how a project tree should be organized.

For example, we choose to use make to provide the main project entrypoints (install, test). We also choose to use git. And nosetests. And to put root package in the project root. Etc.

For beginners, that’s a good thing, because they won’t have to ask themselves questions like “What should I put in setup.py ?” or “Should I create a «src» dir or not ?”. For more advanced users, it can be either a good thing if you agree with our choices, or a bad one …

F.A.Q

  • I’m using PasteScript, isn’t that enough?

    • PasteScript with the basic_package template will only generate a very minimalistic tree, while we install a few tools and generate more boilerplate than it does. The fact is, we were using it before but still had a lot of repeated actions to do then, and the exact aim of this project is to automate the whole. Also, PasteScript cannot update a project once generated, while we do.

  • Should I use it?

    • You’re a grown man, right?

  • Is it stable / production ready?

    • Not really relevant to this project, as it’s more a development tool than something you’ll use in operations. However, please note that on some points and until version 1.0, we will tune things and change the way it works to find the most flexible way to operate. Thus, if you relly on a specific implementation, updates may break things. The good news is that you’ll be able to review changes using git diff –cached, and either rollback or report issues saying how much you’re disappointed (and why, don’t forget the why, please).

  • Can I contribute?

    • Yes, but the right vs wrong choices decision is up to us. Probably a good idea to discuss about it (in an issue for example) first.

  • Can you include feature «foo»?

    • Probably, or maybe not. Come on github issues to discuss it, if we agree on the fact this feature is good for a lot of usages, your patch will be welcome. Also, we’re working on a simple way to write “feature plugins”, so even if we don’t agree on something, you’ll be able to code and even distribute addons that make things work the way you like.

  • Do you support python 3?

    • Yes, edgy.project run both with python 2.7+ and python 3.4+, but we don’t generate version specific code. For example, we don’t support generating namespace packages that does not have __init__.py files with the python namespace package boilerplate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edgy.project-0.1.15.tar.gz (15.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

edgy.project-0.1.15.macosx-10.11-x86_64.tar.gz (30.5 kB view details)

Uploaded Source

edgy.project-0.1.15-py2.py3-none-any.whl (29.5 kB view details)

Uploaded Python 2Python 3

edgy.project-0.1.15-py2.7.egg (54.7 kB view details)

Uploaded Egg

File details

Details for the file edgy.project-0.1.15.tar.gz.

File metadata

  • Download URL: edgy.project-0.1.15.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for edgy.project-0.1.15.tar.gz
Algorithm Hash digest
SHA256 575392c89cf87521fd16b543249df088e9a4e719db37610d67019dcde1b193a3
MD5 fa182d573e3245c13bd6fdc01ac855a8
BLAKE2b-256 054de2b880a81bd5234c2266ad39a978bfd1f9f8c92ddb9cfba87ab46a226c91

See more details on using hashes here.

File details

Details for the file edgy.project-0.1.15.macosx-10.11-x86_64.tar.gz.

File metadata

File hashes

Hashes for edgy.project-0.1.15.macosx-10.11-x86_64.tar.gz
Algorithm Hash digest
SHA256 24115461a623614492d2f8b9f6da16e2dcedc24450575cdaf0feafac53383604
MD5 ab3e70f15577772adf4368d76d9fe0d6
BLAKE2b-256 344acfbec0a8250a032776bf5e4c7ab9c3acc5103c2b5984a3363365037d5aef

See more details on using hashes here.

File details

Details for the file edgy.project-0.1.15-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for edgy.project-0.1.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e9fdecc994792c3bf69b8eb32e684dba73c9543eafd25e7143d3a81d7596d400
MD5 a1eb082225e286e16a547a24761d5d53
BLAKE2b-256 9172e28af737f70995ec2a6d4e16dc11bbcb908c8e2a138ad93e8fef20069289

See more details on using hashes here.

File details

Details for the file edgy.project-0.1.15-py2.7.egg.

File metadata

File hashes

Hashes for edgy.project-0.1.15-py2.7.egg
Algorithm Hash digest
SHA256 1afe6cbb6b6a7eebc9d366ad460756499ee09f06fd7faf31916f9d06ccd0b9be
MD5 6d049cbecdee8e8020a343ffa89d968e
BLAKE2b-256 19500dc0419a931c2a823b3b6809d111ed2f0ad6d25102a983e8e962f182e3f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page