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

Use setup.py for optional requirements instead of requirements-dev.txt #117

Merged
merged 7 commits into from
May 25, 2020

Conversation

ajfriend
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 24, 2020

Codecov Report

Merging #117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #117   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          181       181           
=========================================
  Hits           181       181           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f89a42...31840ad. Read the comment docs.

@ajfriend ajfriend marked this pull request as ready for review May 24, 2020 23:17

- name: Install dev requirements
run: pip install -r requirements-dev.txt
run: pip install .[all]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, what happens if I run pip install . instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pip install . installs the minimum requirements. In this case, no other libraries are installed as dependencies. The options are given in the setup.py file:

extras_require={
    'numpy': ['numpy'],
    'test': ['pytest', 'pytest-cov', 'flake8'],
    'all': ['numpy', 'pytest', 'pytest-cov', 'flake8'],
},

@ajfriend ajfriend merged commit f6a9a2a into master May 25, 2020
@ajfriend ajfriend deleted the setup branch May 25, 2020 17:51
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.

3 participants