Skip to content

Commit 7f55213

Browse files
Martin Larraldewillmcgugan
authored andcommitted
Use Markdown readme and add project urls (#172)
* Use `Markdown` readme and add project urls * Replace `pypi.python.org` links with `pypi.org` * Use `twine` to upload distributions in `Makefile` [ci skip]
1 parent d41de6e commit 7f55213

File tree

7 files changed

+21
-138
lines changed

7 files changed

+21
-138
lines changed

.coveragerc

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

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ readme:
44

55
.PHONY: release
66
release: readme
7-
python setup.py sdist bdist_wheel upload
7+
python setup.py sdist bdist_wheel
8+
twine upload dist/*.whl dist/*.tar.gz
89

910
.PHONY: test
1011
test:

readme.md renamed to README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PyFilesystem2
44
Python's Filesystem abstraction layer.
55

66
[![PyPI version](https://badge.fury.io/py/fs.svg)](https://badge.fury.io/py/fs)
7-
[![PyPI](https://img.shields.io/pypi/pyversions/fs.svg)](https://pypi.python.org/pypi/fs/)
7+
[![PyPI](https://img.shields.io/pypi/pyversions/fs.svg)](https://pypi.org/project/fs/)
88
[![Build Status](https://travis-ci.org/PyFilesystem/pyfilesystem2.svg?branch=master)](https://travis-ci.org/PyFilesystem/pyfilesystem2)
99
[![Coverage Status](https://coveralls.io/repos/github/PyFilesystem/pyfilesystem2/badge.svg)](https://coveralls.io/github/PyFilesystem/pyfilesystem2)
1010
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/30ad6445427349218425d93886ade9ee)](https://www.codacy.com/app/will-mcgugan/pyfilesystem2?utm_source=github.com&utm_medium=referral&utm_content=PyFilesystem/pyfilesystem2&utm_campaign=Badge_Grade)

README.rst

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

fs/appfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
subclasses of `~fs.osfs.OSFS`.
66
77
"""
8-
# Thanks to authors of https://pypi.python.org/pypi/appdirs
8+
# Thanks to authors of https://pypi.org/project/appdirs
99

1010
# see http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx
1111

setup.cfg

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ universal = 1
33

44
[metadata]
55
license_file = LICENSE
6+
long_description = file: README.md
7+
long_description_content_type = text/markdown
8+
project_urls =
9+
Bug Reports = https://github.com/PyFilesystem/pyfilesystem2/issues
10+
Documentation = https://pyfilesystem2.readthedocs.io/en/latest/
11+
Wiki = https://www.pyfilesystem.org/
612

713
[pydocstyle]
814
inherit = false
915
ignore = D102,D105,D200,D203,D213,D406,D407
1016
match-dir = (?!tests)(?!docs)[^\.].*
1117
match = (?!test)(?!setup)[^\._].*\.py
1218

13-
[coverage:report]
14-
show_missing = true
15-
exclude_lines =
16-
pragma: no cover
17-
typing.TYPE_CHECKING
18-
1919
[mypy]
2020
ignore_missing_imports = true
2121

@@ -32,3 +32,14 @@ warn_return_any = false
3232

3333
[mypy-fs.test]
3434
disallow_untyped_defs = false
35+
36+
[coverage:run]
37+
omit = fs/test.py
38+
39+
[coverage:report]
40+
show_missing = true
41+
exclude_lines =
42+
pragma: no cover
43+
if False:
44+
@typing.overload
45+

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
'Topic :: System :: Filesystems',
2020
]
2121

22-
with open('README.rst', 'rt') as f:
23-
DESCRIPTION = f.read()
24-
2522
REQUIREMENTS = [
2623
"appdirs~=1.4.3",
2724
"pytz",
@@ -58,7 +55,6 @@
5855
'userlog = fs.opener.appfs:AppFSOpener',
5956
]},
6057
license="MIT",
61-
long_description=DESCRIPTION,
6258
name='fs',
6359
packages=find_packages(exclude=("tests",)),
6460
platforms=['any'],

0 commit comments

Comments
 (0)