Skip to content

Commit

Permalink
Update version number, and fix formating of README in PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropark99 committed Dec 21, 2022
1 parent 18bd860 commit 6f51c78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "spark_map"
version = "0.2.4"
version = "0.2.6"
authors = [
{ name="Pedro Faria", email="pedropark99@gmail.com" }
]
Expand Down
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
import os
os.system("pandoc --from=markdown --to=rst --output=README.rst README.md")

from pypandoc import convert_file
from setuptools import setup
import toml


def read_file(path):
with open(path) as f:
lines = f.readlines()
text = ''.join(lines)
return text

# Import package metadata from the pyproject.toml file.
# This way we mantain these metadata in only one file, and just reuse as needed.
metadata = toml.load("pyproject.toml")
project = metadata['project']


setup(
name = project['name'],
version = project['version'],
author = project['authors'][0]['name'],
author_email = project['authors'][0]['email'],
license = 'MIT License',
description = project['description'],
long_description = "README.rst",
long_description = read_file(project['readme']),
long_description_content_type = "text/markdown",
classifiers = project['classifiers'],
url = project['urls']['Homepage'],
keywords = ['spark', 'pyspark', 'map'],
Expand Down

0 comments on commit 6f51c78

Please sign in to comment.