Permalink
Browse files

Directly use README.md for pypi (use new pypi feature)

  • Loading branch information...
mrbean-bremen committed Apr 26, 2018
1 parent 99029d8 commit 273067763379d6a4730525ad315b316b35295713
Showing with 12 additions and 23 deletions.
  1. +1 −0 CHANGES.md
  2. +0 −3 MANIFEST.in
  3. +2 −0 setup.cfg
  4. +9 −20 setup.py
View
@@ -7,6 +7,7 @@ The release versions are PyPi releases.
#### Infrastructure
* moved tests into package
* use README.md in pypi ([#358](../../issues/358))
#### Fixes
* `add_real_directory` did not behave correctly for nested paths
View
@@ -1,6 +1,3 @@
include CHANGES.md
include COPYING
include README.md
include example.py
include example_test.py
include tests/*.py
View
@@ -1,2 +1,4 @@
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
View
@@ -15,6 +15,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from setuptools import setup, find_packages
from pyfakefs.fake_filesystem import __version__
@@ -25,18 +28,10 @@
URL = "http://pyfakefs.org"
try:
import pypandoc
BASE_PATH = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(BASE_PATH, 'README.md')) as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
with open('README.rst', 'w') as f:
f.write(LONG_DESCRIPTION)
except ImportError:
LONG_DESCRIPTION = (
'Using pyfakefs, your tests operate on a fake file system in memory '
'without touching the real disk. The software under test requires '
'no modification to work with pyfakefs.'
)
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
@@ -80,17 +75,11 @@
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
packages=[
'pyfakefs'
]
packages=find_packages(exclude=['docs'])
)
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(**params) # pylint: disable = W0142
setup(**params)

0 comments on commit 2730677

Please sign in to comment.