Skip to content

Commit

Permalink
adding readme to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo committed May 6, 2020
1 parent 3f099be commit 30a0e8e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
28 changes: 28 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,31 @@
setup.py
cmcrameri/__init__.py
cmcrameri/cm.py
cmcrameri/cmaps/acton.txt
cmcrameri/cmaps/bamako.txt
cmcrameri/cmaps/batlow.txt
cmcrameri/cmaps/berlin.txt
cmcrameri/cmaps/bilbao.txt
cmcrameri/cmaps/broc.txt
cmcrameri/cmaps/brocO.txt
cmcrameri/cmaps/buda.txt
cmcrameri/cmaps/cork.txt
cmcrameri/cmaps/corkO.txt
cmcrameri/cmaps/davos.txt
cmcrameri/cmaps/devon.txt
cmcrameri/cmaps/grayC.txt
cmcrameri/cmaps/hawaii.txt
cmcrameri/cmaps/imola.txt
cmcrameri/cmaps/lajolla.txt
cmcrameri/cmaps/lapaz.txt
cmcrameri/cmaps/lisbon.txt
cmcrameri/cmaps/nuuk.txt
cmcrameri/cmaps/oleron.txt
cmcrameri/cmaps/oslo.txt
cmcrameri/cmaps/roma.txt
cmcrameri/cmaps/romaO.txt
cmcrameri/cmaps/tofino.txt
cmcrameri/cmaps/tokyo.txt
cmcrameri/cmaps/turku.txt
cmcrameri/cmaps/vik.txt
cmcrameri/cmaps/vikO.txt
1 change: 0 additions & 1 deletion cmcrameri/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import os
# Find the colormap text files and make a list of the paths
text_file_folder = os.path.join(os.path.dirname(__file__), 'cmaps')
print(Path(os.path.join(os.path.split(__file__)[0], 'cmaps')))
paths = list(Path(text_file_folder).glob('*.txt'))
crameri_cmaps = dict()
crameri_cmaps_r = dict()
Expand Down
20 changes: 17 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@
setup.py for cmcrameri
"""
from distutils.core import setup
from setuptools import setup

from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
name='an_example_package',
# other arguments omitted
long_description=long_description,
long_description_content_type='text/markdown'
)

setup(
name = 'cmcrameri',
packages = ['cmcrameri'],
version = '0.7',
version = '0.8',
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown'
description = 'Perceptually uniform colourmaps',
author = 'Callum Rollo',
author_email = '[email protected]',
Expand All @@ -18,7 +33,6 @@
'matplotlib',
'numpy',
],
packages=['mypkg'],
package_dir={'mypkg': 'cmcrameri'},
package_data={'cmcrameri': ['cmaps/*.txt']},
)

0 comments on commit 30a0e8e

Please sign in to comment.