Skip to content

Commit

Permalink
Build fix by removing pycodestyle errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayanthkmr committed Apr 26, 2018
1 parent 1bce0c9 commit a65253a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 43 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ Common atf based changes will go in pyoracc/atf/common
Before running pytest and coverage, install [py.test](https://docs.pytest.org/en/latest/getting-started.html) and [pytest-cov](https://pypi.org/project/pytest-cov/).

$ py.test --cov=pyoracc --cov-report xml --cov-report html --cov-report annotate --runslow


Before running pycodestyle, install [pycodestyle](https://pypi.org/project/pycodestyle/).

$ pycodestyle

## API Consumption

```python
Expand Down
47 changes: 5 additions & 42 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

dependencies = ['click', 'mako', 'ply']

extra_dependencies = ['pytest', 'pytest-cov', 'codecov']
extra_dependencies = ['pytest', 'pytest-cov', 'codecov', 'pycodestyle']


class MyBuildPy(build_py):
Expand All @@ -53,47 +53,14 @@ def run(self):
version='0.1.0',
author='UCL Research IT Services',
author_email='[email protected]',
# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
# https://packaging.python.org/specifications/core-metadata/#summary
description='Python tools for working with ORACC/CDLI ATF files', # Required

# This is an optional longer description of your project that represents
# the body of text which users will see when they visit PyPI.
#
# Often, this is the same as your README, so you can just read it in from
# that file directly (as we have already done above)
#
# This field corresponds to the "Description" metadata field:
# https://packaging.python.org/specifications/core-metadata/#description-optional
long_description=long_description, # Optional

# Denotes that our long_description is in Markdown; valid values are
# text/plain, text/x-rst, and text/markdown
#
# Optional if long_description is written in reStructuredText (rst) but
# required for plain-text or Markdown; if unspecified, "applications should
# attempt to render [the long_description] as text/x-rst; charset=UTF-8 and
# fall back to text/plain if it is not valid rst" (see link below)
#
# This field corresponds to the "Description-Content-Type" metadata field:
# https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
long_description_content_type='text/markdown', # Optional (see note above)

description='Python tools for working with ORACC/CDLI ATF files',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/ucl/pyoracc',
download_url='https://github.com/ucl/pyoracc/archive/master.tar.gz',
license='GPLv3',
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),
install_requires=dependencies,
setup_requires=dependencies,
# List additional groups of dependencies here (e.g. development
# dependencies). Users will be able to install these using the "extras"
# syntax, for example:
#
# $ pip install sampleproject[dev]
#
# Similar to `install_requires` above, these must be valid existing
# projects.
extras_require={ # Optional
'dev': extra_dependencies,
'test': extra_dependencies,
Expand Down Expand Up @@ -129,14 +96,10 @@ def run(self):
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
# This field adds keywords for your project which will appear on the
# project page. What does your project relate to?
#
# Note that this is a string of words separated by whitespace, not a list.
keywords='oracc cdli atf cuneiform parser', # Optional
project_urls={ # Optional
'Bug Reports': 'https://github.com/oracc/pyoracc/issues',
'Donating!': 'http://oracc.museum.upenn.edu/doc/about/contributing/index.html',
'Donating!': 'http://oracc.museum.upenn.edu/doc/about/contributing/',
'Help!': 'http://oracc.museum.upenn.edu/doc/help/index.html',
'Source': 'https://github.com/oracc/pyoracc/',
},
Expand Down

0 comments on commit a65253a

Please sign in to comment.