Skip to content

Declarative setup #39

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

Merged
merged 4 commits into from
May 18, 2020

Conversation

rpanderson
Copy link
Member

This PR introduces setup.cfg and makes setup.py as simple as possible, containing only programmatic overrides.

  1. This allows setup.py to be identical (or near-identical) for all packages in the labscript suite.
  2. Only additions in setup.cfg to existing configuration are:
    • Explicit version_scheme and local_scheme for setuptools_scm, overridden by environment variables SCM_VERSION_SCHEME and SCM_LOCAL_SCHEME, respectively, in anticipation of automated release process. (Default version_scheme will be updated to release-branch-semver upon next release of setuptools_scm.)
    • Added keywords and classifiers to metadata.
    • Added 'Source Code', 'Download', and (issue) 'Tracker' URLs to metadata to adorn PyPI sidebar.
  3. Regarding building conda distributions, see Support declarative config chrisjbillington/setuptools-conda#1.

setup.cfg Outdated
license = BSD
classifiers =
License :: OSI Approved :: BSD License
Programming Language :: Python :: 2.7
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consistently remove 2.7 support. At the moment it's been dropped from lyse, runmanager, and runviewer.


if 'CONDA_BUILD' in os.environ:
if "CONDA_BUILD" in os.environ:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisjbillington is there a reason this package doesn't override install_requires like the others?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remember, but probably because all of its dependencies have conda package (zprocess and qtutils on my personal conda repo, anyway). That makes me think I only ever overrode setup_requires for this reason, and that we should just not overwrite it and work on getting everything on conda.

@chrisjbillington chrisjbillington merged commit 2af52ef into labscript-suite:master May 18, 2020
@rpanderson rpanderson deleted the declarative-setup branch May 18, 2020 02:24
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.

2 participants