]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Native README.md support on PyPI \o/
authorŁukasz Langa <lukasz@langa.pl>
Sat, 17 Mar 2018 08:25:59 +0000 (01:25 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Sat, 17 Mar 2018 08:26:30 +0000 (01:26 -0700)
See: https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi

Pipfile
Pipfile.lock
setup.py

diff --git a/Pipfile b/Pipfile
index 3c20aff7d83598d200ca1ba65154d44701e5e91c..02c147b05435a5689f41de2e0127a4c982b5b853 100644 (file)
--- a/Pipfile
+++ b/Pipfile
@@ -6,6 +6,7 @@ name = "pypi"
 [packages]
 attrs = "*"
 click = "*"
+setuptools = ">=38.6.0"
 
 [dev-packages]
 coverage = "*"
@@ -13,5 +14,4 @@ flake8 = "*"
 flake8-bugbear = "*"
 flake8-mypy = "*"
 mypy = "*"
-pypandoc = "*"
-twine = "*"
+twine = ">=1.11.0rc1"
index 7c173f472d03973e1100c2bf65af2f198c554bc5..f94459ded7780fec06ee4e5daa5df2d10ffe69e9 100644 (file)
@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "e2dc877c2f32df83197fc3dc0f49e0a66d0d099aab106b99d64fdbe5b14cc91b"
+            "sha256": "10b4fb1719e1dfd72247a267db4ebbc3539fcc47d0f1a3602ecf699762cc3459"
         },
         "host-environment-markers": {
             "implementation_name": "cpython",
         },
         "pkginfo": {
             "hashes": [
-                "sha256:31a49103180ae1518b65d3f4ce09c784e2bc54e338197668b4fb7dc539521024",
-                "sha256:bb1a6aeabfc898f5df124e7e00303a5b3ec9a489535f346bfbddb081af93f89e"
+                "sha256:a39076cb3eb34c333a0dd390b568e9e1e881c7bf2cc0aee12120636816f55aee",
+                "sha256:5878d542a4b3f237e359926384f1dde4e099c9f5525d236b1840cf704fa8d474"
             ],
-            "version": "==1.4.1"
+            "version": "==1.4.2"
         },
         "pycodestyle": {
             "hashes": [
             ],
             "version": "==1.6.0"
         },
-        "pypandoc": {
-            "hashes": [
-                "sha256:e914e6d5f84a76764887e4d909b09d63308725f0cbb5293872c2c92f07c11a5b"
-            ],
-            "version": "==1.4"
-        },
         "requests": {
             "hashes": [
                 "sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b",
         },
         "tqdm": {
             "hashes": [
-                "sha256:f66468c14ccd011a627734c9b3fd72f20ce16f8faecc47384eb2507af5924fb9",
-                "sha256:5ec0d4442358e55cdb4a0471d04c6c831518fd8837f259db5537d90feab380df"
+                "sha256:05e991ecb0f874046ddcb374396a626afd046fb4d31f73633ea752b844458a7a",
+                "sha256:2aea9f81fdf127048667e0ba22f5fc10ebc879fb838dc52dcf055242037ec1f7"
             ],
-            "version": "==4.19.6"
+            "version": "==4.19.8"
         },
         "twine": {
             "hashes": [
-                "sha256:d3ce5c480c22ccfb761cd358526e862b32546d2fe4bc93d46b5cf04ea3cc46ca",
-                "sha256:caa45b7987fc96321258cd7668e3be2ff34064f5c66d2d975b641adca659c1ab"
+                "sha256:87ca69576a47019052b1bf2a27c00520379304c721e5f9eb46f126068a874a61",
+                "sha256:24d1489e586f9c927f9c02b5d4d239da48f97206cc8fc6c9dacb2aab42e1a1b1"
             ],
-            "version": "==1.9.1"
+            "version": "==1.11.0rc1"
         },
         "typed-ast": {
             "hashes": [
                 "sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
             ],
             "version": "==1.22"
-        },
-        "wheel": {
-            "hashes": [
-                "sha256:e721e53864f084f956f40f96124a74da0631ac13fbbd1ba99e8e2b5e9cafdf64",
-                "sha256:9515fe0a94e823fd90b08d22de45d7bde57c90edce705b22f5e1ecf7e1b653c8"
-            ],
-            "version": "==0.30.0"
         }
     }
 }
index 306039e28949981901cdd0835b6cf7afb0b6ecf4..3488ff7b6a0f05f9d9465ac0fd8b318f48c2e772 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -12,20 +12,8 @@ CURRENT_DIR = Path(__file__).parent
 
 def get_long_description():
     readme_md = CURRENT_DIR / 'README.md'
-    try:
-        import pypandoc
-        return pypandoc.convert_file(str(readme_md), 'rst')
-
-    except (IOError, ImportError):
-        print()
-        print(
-            '\x1b[31m\x1b[1mwarning:\x1b[0m\x1b[31m pandoc not found, '
-            'long description will be ugly (PyPI does not support .md).'
-            '\x1b[0m'
-        )
-        print()
-        with open(readme_md, encoding='utf8') as ld_file:
-            return ld_file.read()
+    with open(readme_md, encoding='utf8') as ld_file:
+        return ld_file.read()
 
 
 def get_version():
@@ -41,6 +29,7 @@ setup(
     version=get_version(),
     description="The uncompromising code formatter.",
     long_description=get_long_description(),
+    long_description_content_type="text/markdown",
     keywords='automation formatter yapf autopep8 pyfmt gofmt rustfmt',
     author='Łukasz Langa',
     author_email='lukasz@langa.pl',