LibCST/setup.py
Benjamin Woodruff c5f24f35a4 Improve the way dependencies are declared
@jreese had some suggestions in my previous pull request after it got
merged, so this addresses some of those suggestions:

- Uses the PEP 508 `python_version` environment marker instead of
  conditional logic inside `setup.py`. I've updated `requirements.txt`
  to use this too.
- Split dev requirements into a separate `requirements-dev.txt`, and
  updated the README to include instructions for it.

This PR does not use pyup, because it looks like it's free for
non-commercial use only (I don't know that that means in this context),
and because this project isn't public yet.

It also does not include a makefile yet, because Jennifer and I need to
talk through where we'd stick the virtualenv in that case.

I tested these changes on 3.6 and 3.7.
2019-07-22 19:53:49 -07:00

33 lines
946 B
Python

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import sys
from os import path
# pyre-ignore Pyre doesn't know about setuptools.
import setuptools
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setuptools.setup(
name="libcst",
description="A concrete syntax tree with AST-like properties for Python 3.7.",
long_description=long_description,
long_description_content_type="text/markdown",
version="0.1.dev0",
packages=setuptools.find_packages(),
python_requires=">=3.6",
install_requires=[
"dataclasses; python_version < '3.7'",
"parso",
"typing_extensions",
],
extras_require={
"dev": ["black", "isort", "pyre-check"],
}
)