Skip to content

Commit b4ab3c7

Browse files
authored
Merge pull request #121 from bittner/feature/update-pypi-readme-and-classifiers
Update classifiers, make README display correctly on PyPI
2 parents 067643f + 11000d6 commit b4ab3c7

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

pythonturtle/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
demonstrates how to move the turtle and introduces the student to the
1010
basics of Python programming.
1111
"""
12+
name = 'PythonTurtle'
13+
__version__ = '0.3.0'
1214
__license__ = 'MIT'
13-
__product_name__ = 'PythonTurtle'
1415
__url__ = 'http://pythonturtle.org'
15-
__version__ = '0.3.0'

pythonturtle/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def init_about_dialog_info(self):
207207
info.SetDescription(description)
208208
info.SetLicence(license_terms)
209209
info.SetCopyright(license_copyright)
210-
info.SetName(pythonturtle.__product_name__)
210+
info.SetName(pythonturtle.name)
211211
info.SetVersion(pythonturtle.__version__)
212212
info.SetWebSite(pythonturtle.__url__)
213213
info.SetDevelopers(developer_list)

setup.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,40 @@ def read_file(filename):
1515

1616

1717
setup(
18-
name=package.__name__,
18+
name=package.name,
1919
version=package.__version__,
20-
description=package.__doc__,
21-
long_description=read_file('README.md'),
20+
license=package.__license__,
21+
author='Ram Rachum',
22+
author_email='ram@rachum.com',
23+
description=package.__doc__.strip().split('\n')[0],
2224
long_description_content_type='text/markdown',
25+
long_description=read_file('README.md'),
26+
url=package.__url__,
27+
project_urls={
28+
'Source': 'https://github.com/cool-RR/PythonTurtle',
29+
},
30+
keywords=['turtle', 'learning', 'children', 'beginners', 'logo '],
2331
classifiers=[
2432
'Development Status :: 5 - Production/Stable',
25-
'Intended Audience :: Developers',
33+
'Environment :: MacOS X',
34+
'Environment :: Win32 (MS Windows)',
35+
'Environment :: X11 Applications :: GTK',
36+
'Intended Audience :: Education',
2637
'License :: OSI Approved :: MIT License',
27-
'Operating System :: OS Independent',
38+
'Operating System :: MacOS',
39+
'Operating System :: Microsoft :: Windows',
40+
'Operating System :: POSIX :: Linux',
41+
'Programming Language :: Python :: 3',
2842
'Programming Language :: Python :: 3.6',
2943
'Programming Language :: Python :: 3.7',
44+
'Topic :: Education',
3045
],
31-
keywords=['turtle', 'learning', 'children', 'beginners', 'logo '],
32-
author='Ram Rachum',
33-
author_email='ram@rachum.com',
34-
url=package.__url__,
35-
license=package.__license__,
46+
python_requires='>=3',
3647
packages=find_packages(exclude=['tests']),
3748
include_package_data=True,
49+
zip_safe=True,
3850
# install_requires=['wxPython'],
3951
tests_require=['tox'],
40-
zip_safe=True,
4152
entry_points={
4253
'console_scripts': [
4354
'PythonTurtle = pythonturtle.__main__:run',

0 commit comments

Comments
 (0)