Giter Club home page Giter Club logo

packaging-guide's Introduction

openastronomy

General repo

packaging-guide's People

Contributors

astrofrog avatar bmorris3 avatar bsipocz avatar cadair avatar cyclingninja avatar dstansby avatar eteq avatar hamogu avatar jeffjennings avatar nabobalis avatar namurphy avatar pauljwright avatar pre-commit-ci[bot] avatar zacharyburnett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packaging-guide's Issues

Auto update of version pins based on upstream requirements

As asked by @weaverba137 over at astropy/astropy-project#255 (comment)

Is there a way to know what upstream dependencies Astropy currently supports (equivalently: is being tested against), independently of tracking down the testing configuration files and reading those? If that did exist, one could conceive of packaging it in e.g. JSON or YAML format, then dropping those versions into templates of e.g. setup.cfg, tox.ini, .readthedocs.yml, ci_workflows.yml, etc.


Note: "Astropy" could be generalized to any upstream Python dependency that has similar layout as the template, perhaps.

license selection is broken

If one runs

pieceofcake gh:OpenAstronomy/packaging-guide ./output_directory

and chooses the default answer to every question, apart from choosing '1' for the license selection, you should get the BSD clause 3 license. packagename/licenses/LICENSE.rst and README.rst have the GNU GPL v3+ license selected however.

Add a `.gitignore`?

We don't automake a git directory, but it is expected (#1), having a ignore would be very useful?

Include GitHub Actions workflows in package template

GitHub Actions has been gaining a lot of traction, so it would be really helpful for the package template to already have configuration files for GitHub Actions built-in. That would simplify the process of setting up continuous integration testing for people who end up using the template for a project that ends up being hosted on ye olde GitHub.

Since there's a chance that some projects would end up being hosted on GitLab or elsewhere, it might be good to ask if the user wants to have these configuration files automagically included or not.

I'm also wondering if setting up GitHub Actions in the template would help allow the template itself to be (meta?)tested with GitHub Actions, but that's outside the scope of this particular issue.

Answering "Other" to license question raises exception

What open-source license would you like to use for your package?
1 - BSD 3-Clause
2 - GNU GPL v3+
3 - Apache Software License 2.0
4 - BSD 2-Clause
5 - Other
> license [1]: 5
Traceback (most recent call last):
  File "/Users/dstansby/miniconda3/bin/pieceofcake", line 8, in <module>
    sys.exit(main())
  File "/Users/dstansby/miniconda3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/dstansby/miniconda3/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/dstansby/miniconda3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/dstansby/miniconda3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/dstansby/miniconda3/lib/python3.8/site-packages/pieceofcake/main.py", line 96, in main
    values[key] = value[click.prompt(BOLD + '> ' + prompt + END,
IndexError: list index out of range

Maintaining package with an alias for PyPI

I'm working on a package with a name that's already registered on PyPI. What's the correct usage of the package template when you want to use an alias on PyPI, but you want to import the package under the simple name?

Merge with / deprecate in favor of scientific-python/cookie?

https://github.com/scientific-python/cookie is the cookie frontend to the excellent https://learn.scientific-python.org/development/ resource. It's more actively developed and more fully featured. Rather than duplicating effort, should we upstream the best parts of this packaging guide to https://learn.scientific-python.org/development/ and https://github.com/scientific-python/cookie and then deprecate this repo?

(Note: also impacts https://github.com/astropy/astropy/blob/main/docs/development/astropy-package-template.rst)

Indentation errors in the .readthedocs.yml example file

To the authors: this is a great guide! I've been learning how
to get sphinx to produce documentation and it's working great!

The section entitled Setting up ReadTheDocs contains some
code for the .readthedocs.yml file to be used when setting
up the ReadTheDocs documentation.

However, it seems there is a problem with the indentation in
the example provided, and when I tried to build the file using
this I ran into a set of compilation errors.

I cloned the repo and made a fix to the in the docs/docs.rst file
and this now compiles OK.

The link is here.

Hopefully this can help people using the guide!

Cheers,

Alex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.