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 1
1
A sample Python project
2
2
=======================
3
3
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
6
6
<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'
3
1
4
2
def main ():
5
3
"""Entry point for the application script"""
Original file line number Diff line number Diff line change 3
3
import os
4
4
import re
5
5
6
- import sample
7
-
8
6
here = os .path .abspath (os .path .dirname (__file__ ))
9
7
10
8
# Get the long description from the relevant file
14
12
setup (
15
13
name = "sample" ,
16
14
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' ,
20
19
21
20
description = "A sample Python project" ,
22
21
long_description = long_description ,
You can’t perform that action at this time.
0 commit comments