2019-06-17 17:54:55 +03:00
|
|
|
cabal-version: 2.4
|
2019-06-11 18:06:11 +03:00
|
|
|
|
|
|
|
name: semantic-python
|
|
|
|
version: 0.0.0.0
|
|
|
|
synopsis: Semantic support for Python.
|
|
|
|
description: Semantic support for Python using the semantic-core intermediate language.
|
|
|
|
homepage: https://github.com/github/semantic/tree/master/semantic-python#readme
|
2019-06-11 18:23:38 +03:00
|
|
|
bug-reports: https://github.com/github/semantic/issues
|
2019-06-11 18:06:11 +03:00
|
|
|
license: MIT
|
|
|
|
license-file: LICENSE
|
|
|
|
author: The Semantic authors
|
|
|
|
maintainer: opensource+semantic@github.com
|
|
|
|
copyright: (c) 2019 GitHub, Inc.
|
|
|
|
category: Language
|
|
|
|
build-type: Simple
|
2019-06-11 18:25:20 +03:00
|
|
|
stability: alpha
|
2019-06-11 18:06:11 +03:00
|
|
|
extra-source-files: README.md
|
|
|
|
|
2019-10-21 20:31:06 +03:00
|
|
|
tested-with: GHC == 8.6.5
|
2019-06-11 18:06:11 +03:00
|
|
|
|
2019-08-13 21:01:50 +03:00
|
|
|
common haskell
|
|
|
|
default-language: Haskell2010
|
2019-12-16 20:20:05 +03:00
|
|
|
build-depends: base ^>= 4.13
|
2020-02-04 20:29:57 +03:00
|
|
|
, fused-effects ^>= 1.0.0.1
|
2019-10-11 00:59:50 +03:00
|
|
|
, fused-syntax
|
2019-10-30 20:13:53 +03:00
|
|
|
, parsers ^>= 0.12.10
|
2020-01-29 20:29:31 +03:00
|
|
|
, semantic-analysis ^>= 0
|
2020-02-04 21:35:35 +03:00
|
|
|
, semantic-ast
|
2019-09-03 20:35:33 +03:00
|
|
|
, semantic-core ^>= 0.0
|
2020-01-28 20:42:42 +03:00
|
|
|
, semantic-source ^>= 0.0.2
|
2019-10-03 08:13:41 +03:00
|
|
|
, semantic-tags ^>= 0.0
|
2020-01-08 20:29:17 +03:00
|
|
|
, semantic-scope-graph ^>= 0.0
|
2020-01-14 23:03:06 +03:00
|
|
|
, semilattices ^>= 0
|
2020-01-27 22:27:41 +03:00
|
|
|
, template-haskell ^>= 2.15
|
2019-09-18 21:50:28 +03:00
|
|
|
, text ^>= 1.2.3
|
2020-02-08 03:17:08 +03:00
|
|
|
, tree-sitter ^>= 0.9
|
2020-02-08 03:39:18 +03:00
|
|
|
, tree-sitter-python ^>= 0.9.0.1
|
2020-01-21 21:33:26 +03:00
|
|
|
, containers
|
2019-06-11 18:44:43 +03:00
|
|
|
ghc-options:
|
|
|
|
-Weverything
|
|
|
|
-Wno-missing-local-signatures
|
|
|
|
-Wno-missing-import-lists
|
|
|
|
-Wno-implicit-prelude
|
|
|
|
-Wno-safe
|
|
|
|
-Wno-unsafe
|
|
|
|
-Wno-name-shadowing
|
|
|
|
-Wno-monomorphism-restriction
|
|
|
|
-Wno-missed-specialisations
|
|
|
|
-Wno-all-missed-specialisations
|
|
|
|
-Wno-star-is-type
|
2019-12-10 21:32:56 +03:00
|
|
|
if (impl(ghc >= 8.8))
|
|
|
|
ghc-options: -Wno-missing-deriving-strategies
|
2019-09-03 20:35:33 +03:00
|
|
|
|
|
|
|
|
|
|
|
library
|
|
|
|
import: haskell
|
2019-10-03 08:13:41 +03:00
|
|
|
exposed-modules:
|
|
|
|
Language.Python
|
2020-01-27 22:27:41 +03:00
|
|
|
Language.Python.AST
|
2019-10-03 08:13:41 +03:00
|
|
|
Language.Python.Core
|
2020-01-29 00:09:29 +03:00
|
|
|
Language.Python.Grammar
|
2019-11-13 22:33:39 +03:00
|
|
|
Language.Python.Failure
|
2020-01-15 23:43:41 +03:00
|
|
|
Language.Python.Patterns
|
2020-01-15 23:00:01 +03:00
|
|
|
Language.Python.ScopeGraph
|
2019-10-03 08:13:41 +03:00
|
|
|
Language.Python.Tags
|
2019-09-03 20:35:33 +03:00
|
|
|
hs-source-dirs: src
|
2020-02-03 18:14:53 +03:00
|
|
|
build-depends: lens ^>= 4.18
|
2019-09-03 20:35:33 +03:00
|
|
|
|
2020-01-14 23:04:18 +03:00
|
|
|
test-suite compiling
|
2019-08-13 21:01:50 +03:00
|
|
|
import: haskell
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Test.hs
|
2019-08-16 19:34:56 +03:00
|
|
|
ghc-options: -threaded
|
|
|
|
|
2020-01-15 19:35:59 +03:00
|
|
|
build-depends: semantic-python == 0.0.0.0
|
|
|
|
, aeson ^>= 1.4.4
|
|
|
|
, aeson-pretty ^>= 0.8.7
|
|
|
|
, bytestring ^>= 0.10.8.2
|
|
|
|
, containers ^>= 0.6
|
|
|
|
, directory ^>= 1.3.3
|
|
|
|
, exceptions ^>= 0.10.2
|
|
|
|
, pathtype ^>= 0.8.1
|
|
|
|
, pretty-show ^>= 1.9.5
|
|
|
|
, process ^>= 1.6.5
|
|
|
|
, resourcet ^>= 1.2.2
|
|
|
|
, semantic-analysis ^>= 0
|
|
|
|
, streaming ^>= 0.2.2
|
|
|
|
, streaming-process ^>= 0.1
|
|
|
|
, streaming-bytestring ^>= 0.1.6
|
|
|
|
, tasty ^>= 1.2.3
|
|
|
|
, tasty-hunit ^>= 0.10.0.2
|
|
|
|
, trifecta >= 2 && <3
|
|
|
|
, unordered-containers ^>= 0.2.10
|
|
|
|
|
2019-08-16 22:54:17 +03:00
|
|
|
other-modules: Directive
|
2019-08-27 18:27:53 +03:00
|
|
|
, Instances
|
2019-08-16 19:34:56 +03:00
|
|
|
|
2020-01-14 23:04:18 +03:00
|
|
|
test-suite graphing
|
2020-01-14 22:48:58 +03:00
|
|
|
import: haskell
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test-graphing
|
|
|
|
main-is: GraphTest.hs
|
|
|
|
ghc-options: -threaded
|
|
|
|
|
2020-01-14 23:03:06 +03:00
|
|
|
build-depends: base
|
|
|
|
, semantic-python
|
2020-01-14 22:48:58 +03:00
|
|
|
, semantic-scope-graph
|
2020-01-15 19:35:59 +03:00
|
|
|
, bytestring
|
|
|
|
, pathtype
|
|
|
|
, tasty
|
|
|
|
, tasty-hunit
|
2020-02-04 21:13:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
test-suite test
|
2020-02-06 23:56:16 +03:00
|
|
|
import: haskell
|
2020-02-04 21:13:42 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Test.hs
|
|
|
|
build-depends: base
|
|
|
|
, tree-sitter
|
|
|
|
, tree-sitter-python
|
2020-02-07 00:32:03 +03:00
|
|
|
, semantic-ast
|
2020-02-04 21:13:42 +03:00
|
|
|
, bytestring ^>= 0.10.8.2
|
|
|
|
, hedgehog >= 0.6 && <2
|
|
|
|
, pathtype ^>= 0.8.1
|
|
|
|
, text
|
|
|
|
, tasty
|
|
|
|
, tasty-hedgehog
|
|
|
|
, tasty-hunit
|
|
|
|
|
|
|
|
executable benchmark
|
2020-02-06 23:56:16 +03:00
|
|
|
import: haskell
|
2020-02-04 21:13:42 +03:00
|
|
|
hs-source-dirs: bench
|
|
|
|
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m"
|
|
|
|
main-is: Bench.hs
|
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, gauge ^>= 0.2.5
|
|
|
|
, bytestring
|
|
|
|
, tree-sitter
|
2020-02-08 03:17:08 +03:00
|
|
|
, tree-sitter-python
|