--- /dev/null
+Copyright (C) 2019 M-Labs Limited
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+Other authors retain ownership of their contributions. If a submission can
+reasonably be considered independently copyrightable, it's yours and we
+encourage you to claim it with appropriate copyright notices. This submission
+then falls under the "otherwise noted" category. All submissions are strongly
+encouraged to use the two-clause BSD license reproduced above.
--- /dev/null
+from setuptools import setup, find_packages
+
+
+def scm_version():
+ def local_scheme(version):
+ return version.format_choice("+{node}", "+{node}.dirty")
+ return {"version_scheme": "guess-next-dev", "local_scheme": local_scheme}
+
+
+setup(
+ name="nmigen-soc",
+ use_scm_version=scm_version(),
+ author="whitequark",
+ author_email="whitequark@whitequark.org",
+ description="System on Chip toolkit for nMigen",
+ #long_description="""TODO""",
+ license="BSD",
+ setup_requires=["setuptools_scm"],
+ install_requires=["nmigen", "nmigen-stdio"],
+ packages=find_packages(),
+ project_urls={
+ "Source Code": "https://github.com/m-labs/nmigen-soc",
+ "Bug Tracker": "https://github.com/m-labs/nmigen-soc/issues",
+ },
+)