File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11A sample Python project
22=======================
33
4- This project aims to exemplify best practices for * packaging * Python
5- projects. It is referred to in the ` Python Packaging User Guide Tutorial
4+ A sample project that exists as an aid to the ` Python Packaging User Guide
5+ Tutorial
66<https://python-packaging-user-guide.readthedocs.org/en/latest/tutorial.html> `_.
Original file line number Diff line number Diff line change 1- # The version should comply with PEP440
2- __version__ = '1.2.0'
31
42def main ():
53 """Entry point for the application script"""
Original file line number Diff line number Diff line change 33import os
44import re
55
6- import sample
7-
86here = os .path .abspath (os .path .dirname (__file__ ))
97
108# Get the long description from the relevant file
1412setup (
1513 name = "sample" ,
1614
17- # There are various approaches to referencing the version. For a discussion,
18- # see http://packaging.python.org/en/latest/tutorial.html#version
19- version = sample .__version__ ,
15+ # Versions should comply with PEP440. For a discussion on single-sourcing
16+ # the version across setup.py and the project code, see
17+ # http://packaging.python.org/en/latest/tutorial.html#version
18+ version = '1.2.0' ,
2019
2120 description = "A sample Python project" ,
2221 long_description = long_description ,
You can’t perform that action at this time.
0 commit comments