forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from HanslettTheDev/readme-docs
Use the README file as the docs on PYPI
- Loading branch information
Showing
1 changed file
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,30 +42,17 @@ | |
opts = {} | ||
data_files = [("pyafipws/plantillas", glob.glob("plantillas/*"))] | ||
|
||
|
||
long_desc = ( | ||
"Interfases, herramientas y aplicativos para Servicios Web" | ||
"AFIP (Factura Electrónica, Granos, Aduana, etc.), " | ||
"ANMAT (Trazabilidad de Medicamentos), " | ||
"RENPRE (Trazabilidad de Precursores Químicos), " | ||
"ARBA (Remito Electrónico)" | ||
) | ||
|
||
# convert the README and format in restructured text (only when registering) | ||
if "sdist" in sys.argv and os.path.exists("README.md") and sys.platform == "linux2": | ||
try: | ||
cmd = ["pandoc", "--from=markdown", "--to=rst", "README.md"] | ||
long_desc = subprocess.check_output(cmd).decode("utf8") | ||
open("README.rst", "w").write(long_desc.encode("utf8")) | ||
except Exception as e: | ||
warnings.warn("Exception when converting the README format: %s" % e) | ||
|
||
# from docs https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/ | ||
parent_dir = os.getcwd() | ||
long_desc = open(os.path.join(parent_dir, "README.md")).read() | ||
|
||
setup( | ||
name="PyAfipWs", | ||
version=__version__, | ||
description=desc, | ||
long_description=long_desc, | ||
long_description_content_type="text/markdown", | ||
author="Mariano Reingart", | ||
author_email="[email protected]", | ||
url="https://github.com/reingart/pyafipws", | ||
|