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

Add setup() args for new pypi.org #357

Merged
merged 5 commits into from
Mar 12, 2018
Merged

Conversation

willingc
Copy link
Member

  • Adds additonal python 3 versions
  • Adds Jupyter framework to classifiers :-)
  • Adds project_urls to provide links to end users to docs, source, issue tracker

https://packaging.python.org/tutorials/distributing-packages/#setup-args

@willingc willingc requested a review from minrk March 11, 2018 16:20
setup.py Outdated
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Copy link
Member

Choose a reason for hiding this comment

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

I feel like I harp on about this, but my preference is to use the 2 and 3 classifiers and leave the more specific ones out. They only get out of date, as these have.

The python_requires parameter, which I see you've also added, is a better way of conveying which minor versions it's meant to work with.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I went back and forth on this myself. I will go with your suggestion @takluyver.

setup.py Outdated
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
Copy link
Member

Choose a reason for hiding this comment

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

I'd expect it to work on any platform where Python and ZMQ are available, which is probably a much bigger group than these three. Maybe use Operating System :: OS Independent instead? Or leave it out altogether - I think OS-independent is the default assumption for Python modules.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.

@minrk minrk added this to the 5.2.3 milestone Mar 12, 2018
setup.py Outdated
@@ -85,6 +98,7 @@ def run(self):
'entrypoints',
'tornado>=4.1',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
Copy link
Member

Choose a reason for hiding this comment

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

I think we can be optimistic and remove '<4' here. Putting this here prevents people from even attempting to install the package with a hypothetical Python 4 without us making a new release.

@minrk
Copy link
Member

minrk commented Mar 12, 2018

@willingc great! I can release 5.2.3 with this after the above comments are addressed.

setup.py Outdated
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: Independent',
Copy link
Member

Choose a reason for hiding this comment

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

The spelling is Operating System :: OS Independent . Tautological, I know, but I think PyPI refuses uploads if the classifiers don't match this list.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Fixing.

@willingc
Copy link
Member Author

Hang tight. I need to fix the version error for Python 2.

setup.py Outdated
@@ -85,6 +92,7 @@ def run(self):
'entrypoints',
'tornado>=4.1',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <=4',
Copy link
Member

Choose a reason for hiding this comment

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

We can remove <=4. The rest is already correctly limiting to 2.7, 3.3+. This should be:

python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*',

adding >=3.3 would exclude 2.7, since all of these conditions are AND-ed together.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I need more coffee.

@minrk minrk merged commit 8617c25 into jupyter:master Mar 12, 2018
lumberbot-app bot pushed a commit that referenced this pull request Mar 12, 2018
@minrk
Copy link
Member

minrk commented Mar 12, 2018

Thanks!

minrk added a commit that referenced this pull request Mar 12, 2018
@willingc willingc deleted the update-meta branch March 12, 2018 15: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