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

Packaging #25

Open
mscheinert opened this issue Mar 10, 2021 · 1 comment
Open

Packaging #25

mscheinert opened this issue Mar 10, 2021 · 1 comment

Comments

@mscheinert
Copy link
Collaborator

Prepare SIMSAR as Python Package (see https://packaging.python.org/tutorials/packaging-projects/)

#16 is some preparation step to this.

Some aspects to take into account for next steps:

  • use "simsar" as package name throughout the whole project
  • the module/library should be named simsar, too
  • should be accessible (within python) like:
    import simsar
    
    simsar.mkREADME()      # Run the major function
    or by running the executable mkReadme simsar-readme (rename?)
  • installation via classical distutils
  • installation via pip
  • optional: available via *conda
  • simsar.mkREADME() should accept optional arguments to circumvent interactive user input (should also be supported by the mkReadme simsar-readme executable)

Also interesting for further reading:

@lmicallef
Copy link
Collaborator

The script has been packaged and published on test.pypi (this is an environment used for testing purposes). When package is finalised we can move the package to the 'real' environment pypi.org

Currently, this package is available on:
https://test.pypi.org/project/tsimsar/

Install the package:
pip install -i https://test.pypi.org/simple/ tsimsar

Import and call the package:
import tsimsar
tsimsar.make_readme()

(The above code has to be stored in a configuration to be able to create the readme script.)

@mscheinert, this is available for testing, please send me feedback so that I can fix/modify as required.

lmicallef added a commit that referenced this issue May 19, 2021
These files are required to package a software. setup.py and README.md need to be modified when uploaded to the 'real' environment pypi.org.
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

No branches or pull requests

2 participants