Skip to content

Commit 91997b6

Browse files
committed
Cleaner pypi
1 parent 0bff605 commit 91997b6

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

CHANGELOG.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Pyflex Changelog
1+
Changelog
2+
---------
23

3-
### Pyflex 0.1.2 *Nov 17th 2014*
4-
* Support for (de)serializing windows to and from JSON.
5-
* Much faster STA/LTA computation.
4+
* **Pyflex 0.1.2** *Nov 17th 2014*
5+
* Support for (de)serializing windows to and from JSON.
6+
* Much faster STA/LTA computation.
67

7-
### Pyflex 0.1.1 *Nov 11th 2014*
8-
* Some bugfixes regarding units.
8+
* **Pyflex 0.1.1** *Nov 11th 2014*
9+
* Some bugfixes regarding units.
910

10-
### Pyflex 0.1.0 *Nov 9th 2014*
11-
* Initial Pyflex release.
11+
* **Pyflex 0.1.0** *Nov 9th 2014*
12+
* Initial Pyflex release.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include src/pyflex/tests/data/*
22
include src/pyflex/tests/baseline_images/*
3+
include *.md

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
11
#!/usr/bin/env python
22
# -*- encoding: utf8 -*-
33
import glob
4+
import inspect
45
import io
5-
from os.path import basename
6-
from os.path import dirname
7-
from os.path import join
8-
from os.path import splitext
6+
import os
97

108
from setuptools import find_packages
119
from setuptools import setup
1210

1311

12+
changelog = os.path.join(os.path.dirname(os.path.abspath(
13+
inspect.getfile(inspect.currentframe()))), "CHANGELOG.md")
14+
with open(changelog, "rt") as fh:
15+
changelog = fh.read()
16+
17+
long_description = """
18+
Source code: https://github.com/krischer/pyflex
19+
20+
Documentation: http://krischer.github.io/pyflex
21+
22+
%s""".strip() % changelog
23+
24+
1425
def read(*names, **kwargs):
1526
return io.open(
16-
join(dirname(__file__), *names),
27+
os.path.join(os.path.dirname(__file__), *names),
1728
encoding=kwargs.get("encoding", "utf8")).read()
1829

1930
setup(
2031
name="pyflex",
2132
version="0.1.2",
2233
license='GNU General Public License, Version 3 (GPLv3)',
2334
description="Python port of the FLEXWIN package",
35+
long_description=long_description,
2436
author="Lion Krischer",
2537
author_email="krischer@geophysik.uni-muenchen.de",
2638
url="https://github.com/krischer/pyflex",
2739
packages=find_packages("src"),
2840
package_dir={"": "src"},
29-
py_modules=[splitext(basename(i))[0] for i in glob.glob("src/*.py")],
41+
py_modules=[os.path.splitext(os.path.basename(i))[0]
42+
for i in glob.glob("src/*.py")],
3043
include_package_data=True,
3144
zip_safe=False,
3245
classifiers=[

0 commit comments

Comments
 (0)