Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert into a package that's installable as a console script #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lschumm
Copy link

@lschumm lschumm commented Jul 18, 2019

i converted this library into a more standard-style python package. in order to do this, i:

  • created a setup.py file that specifies package info, dependencies, as well as the fact that we want anaxi to be a executable from the command line
  • deleted requirements.txt, since dependencies are already listed (with version tags) in setup.py
  • moved package files into a folder called anaxitile so it can be bundled as a package
  • instead of checking __name__ == "main", in tsdl.py, i've created a function called shell_invoke that is called when anaxi is called from the command line
  • created an __init__.py that specifies what functions from the files in anaxitiles should be importable or runnable from the anaxitile package anywhere in python
  • removed unused int() ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant