Move production code to src/
This commit is contained in:
parent
df6e31b4ff
commit
1a78c0b99d
|
@ -1,4 +1,4 @@
|
||||||
include pylast/*.py
|
include src/pylast/*.py
|
||||||
include setup.py
|
include setup.py
|
||||||
include README.md
|
include README.md
|
||||||
include COPYING
|
include COPYING
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
# Release Checklist
|
# Release Checklist
|
||||||
|
|
||||||
* [ ] Get master to the appropriate code release state. [Travis CI](https://travis-ci.org/pylast/pylast) should be running cleanly for all merges to master.
|
* [ ] Get master to the appropriate code release state. [Travis CI](https://travis-ci.org/pylast/pylast) should be running cleanly for all merges to master.
|
||||||
* [ ] Remove `.dev0` suffix from the version and update version and date in the changelog:
|
* [ ] Remove `.dev0` suffix from the version and update version and date in the changelog:
|
||||||
```bash
|
```bash
|
||||||
git checkout master
|
git checkout master
|
||||||
edit CHANGELOG.md pylast/version.py
|
edit CHANGELOG.md src/pylast/version.py
|
||||||
```
|
```
|
||||||
* [ ] Commit and tag with the version number:
|
* [ ] Commit and tag with the version number:
|
||||||
```bash
|
```bash
|
||||||
git add CHANGELOG.md pylast/version.py
|
git add CHANGELOG.md src/pylast/version.py
|
||||||
git commit -m "Release 3.0.0"
|
git commit -m "Release 3.0.0"
|
||||||
git tag -a 3.0.0 -m "Release 3.0.0"
|
git tag -a 3.0.0 -m "Release 3.0.0"
|
||||||
```
|
```
|
||||||
|
@ -29,11 +30,11 @@ git push --tags
|
||||||
* [ ] Increment version and append `.dev0`, and add Unreleased to the changelog:
|
* [ ] Increment version and append `.dev0`, and add Unreleased to the changelog:
|
||||||
```bash
|
```bash
|
||||||
git checkout master
|
git checkout master
|
||||||
edit CHANGELOG.md pylast/version.py
|
edit CHANGELOG.md src/pylast/version.py
|
||||||
```
|
```
|
||||||
* [ ] Commit and push:
|
* [ ] Commit and push:
|
||||||
```bash
|
```bash
|
||||||
git add CHANGELOG.md pylast/version.py
|
git add CHANGELOG.md src/pylast/version.py
|
||||||
git commit -m "Start new release cycle"
|
git commit -m "Start new release cycle"
|
||||||
git push
|
git push
|
||||||
```
|
```
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -4,7 +4,7 @@ import sys
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
version_dict = {}
|
version_dict = {}
|
||||||
with open("pylast/version.py") as f:
|
with open("src/pylast/version.py") as f:
|
||||||
exec(f.read(), version_dict)
|
exec(f.read(), version_dict)
|
||||||
version = version_dict["__version__"]
|
version = version_dict["__version__"]
|
||||||
|
|
||||||
|
@ -72,7 +72,8 @@ setup(
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
],
|
],
|
||||||
keywords=["Last.fm", "music", "scrobble", "scrobbling"],
|
keywords=["Last.fm", "music", "scrobble", "scrobbling"],
|
||||||
packages=find_packages(exclude=("tests*",)),
|
packages=find_packages(where="src"),
|
||||||
|
package_dir={"": "src"},
|
||||||
license="Apache2",
|
license="Apache2",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue